<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>星期几</title>
	<style>
		td{
			border:1px solid #ccc;
			width: 70px;
		}
	</style>
</head>
<body>
	<script>
		for(var i = 1; i<=9;i++){
			document.write('<table><tr>')
			for(var a = 1;a<=i;a++){
			document.write('<td>'+i+'x'+a+'='+i*a+'</td>');
			}
			document.write('</tr></table>');
		}
	</script>
</body>
</html>